package com.loukou.lkt.lkt.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.loukou.lkt.lkt.bo.PageList;
import com.loukou.lkt.lkt.bo.SupplierBo;
import com.loukou.lkt.lkt.bo.SupplierExportCsvBean;
import com.loukou.lkt.lkt.entity.Supplier;
import com.loukou.lkt.lkt.resp.RespDto;

public interface SupplierService {

	public RespDto<PageList<SupplierBo>> getList(String supplierCode, String supplierName, int settment_type,
			int isExamine,int isUse,int pageIndex, int pageSize);

	public Page<Supplier> getUsndDitList(String supplierCode, String supplierName, int pageIndex, int pageSize);
		
	public SupplierBo getDetail(int id);
	
	public RespDto<SupplierBo> save(SupplierBo supplierBo);
	
	public RespDto<List<Supplier>> getBySupplierIds(List<Integer> supplierIds);
	
	/**
	 * 
	 * @param isUse 是否在用
	 * @param isExamine 是否审批
	 * @param pageNum 从1开始
	 * @param pageSize 每页大小
	 * @return 供应商列表
	 */
	public RespDto<List<Supplier>> getByIsUseAndIsExamineAndIds(int isUse, int isExamine, List<Integer> ids);
	
	public RespDto<List<Supplier>> getBySupplierName(String supplierName, int isUse, int isExamine);
	
	public RespDto<List<Supplier>> getBySupplierCode(String supplierCode, int isUse, int isExamine);
	
	public RespDto<Integer> updateIsUse(int id,int IsUse);
	
	public List<SupplierExportCsvBean> exportSupplierList(String supplierCode, String supplierName, int settmentType,int isUse);
}
